package com.ruifu.doc.service;

import com.fhzncloud.cloud.common.security.service.CloudUser;
import com.ruifu.doc.dto.foldcont.DmFoldContDeleteDTO;
import com.ruifu.doc.dto.foldcont.DmFoldContInsertDTO;
import com.ruifu.doc.vo.foldcont.DmFoldContVO;

import java.util.List;

/**
 * @author nyr
 * @create 2019/11/11
 */
public interface DmFoldContService {
    /**
     * 批量添加文档到文件夹
     *
     * @param dmFoldContInsertDTO
     * @param cloudUser
     */
    void insertPL(DmFoldContInsertDTO dmFoldContInsertDTO, CloudUser cloudUser);

    /**
     * 删除文件夹内容
     *
     * @param dmFoldContDeleteDTO 文件夹删除内容DTO
     * @param cloudUser
     * @throws Exception
     */
    void batchDelete(DmFoldContDeleteDTO dmFoldContDeleteDTO, CloudUser cloudUser) throws Exception;

    /**
     * 根据文件夹id查询文件夹内容
     *
     * @param fcFoldId    文件夹id
     * @param fcObjTypeId 文件夹类型id
     * @param cloudUser
     * @return
     */
    List<DmFoldContVO> findListByFcFoldId(Long fcFoldId, Long fcObjTypeId, CloudUser cloudUser);
}
